<?php
header('Content-Type: text/html;charset=UTF-8');
$result = '';
$rows = Db::getRows('*', 'news');
    foreach ($rows as $value => $row) {
        $id = $row['id'];
        $title = $row['title'];
        $result.= '<a class="item" href="news?id='.$id.'">'.$title.'</a>';
    }
if ($result != '')
    echo $result;
else
    echo 'chưa có bài viết';
?>
